package com.shensi.adminCollect.controller.station;

import com.shensi.common.core.controller.BaseController;
import com.shensi.common.core.domain.AjaxResult;
import com.shensi.adminCollect.domain.customer.dto.CustomerCardChangeDto;
import com.shensi.adminCollect.service.station.ElectronicCardService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Auther: zxy
 * @Date: 2023/10/10 19:14
 * @Description:
 */
@RestController
@RequestMapping("/electronicCardUpdateUserRecord")
@Api(tags = "UpdateUserRecordController", description = "更新会员电子卡余额Controller")
public class UpdateUserRecordController extends BaseController {

    @Autowired
    private ElectronicCardService electronicCardService;
    @PostMapping("/updateUserRecord")
    @ApiOperation(value = "更新会员电子卡余额")
    public AjaxResult updateUserReocrd(@RequestBody @Validated CustomerCardChangeDto customerCardChangeDto){
        return electronicCardService.updateUserReocrd(customerCardChangeDto);
    }
}
